"""
   author: 陈亚敏
   data: 2021/10/28  17:12
   project: 1
"""
#儿童弹珠游戏：
import random as r
a=r.randint(0,4095)
b=bin(a)
c=int(b[2:])
e="%012d"%c
str1=str(e)
guest=r.randint(0,11)
print("亮灯情况：", str1)
print("你打到了第", guest + 1, "个")
if str1[guest]=="1":
    print("恭喜！你赢了")
else:
    print("你输了")

